@import "../../scss/var";
@import "../../scss/mixin";

page{
  background-color: $them;
}

.points-page{
  @include page();
  .page-tabBar{
    flex-shrink: 0;
    margin-top: 24px;
  }

  .champion-container{
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 20px auto 24px;
    width: 614px;
    .gold,.silver,.bronze{
      position: relative;
    }
    .silver, .bronze {
      width: 160px;
      height: 212px;
      .avatar{
        height: 140px;
        width: 140px;
        border-radius: 50%;
      }
    }
    .gold{
      width: 200px;
      height: 252px;
      .avatar{
        width: 180px;
        height: 180px;
        border-radius: 50%;
      }
    }
    .bg{
      height: 100%;
      width: 100%;
    }
    .avatar{
      position: absolute;
      left: 10px;
      bottom: 10px;
    }

    .score-container{
      color: #ffffff;
      .name,.score{
        margin-top: 15px;
        display: block;
        text-align: center;
      }
      .name{
        font-size: 28px;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .score{
        font-size: 24px;
        .num{
          font-size: 32px;
        }
      }
    }
  }

  .user-list-container{
    margin: 0 auto;
    width: 686px;
    flex: auto;
    background-color: #fff;
    border-radius: 16px 16px 0px 0px;
    .user-container{
      box-sizing: border-box;
      display: flex;
      align-items: center;
      height: 96px;
      padding: 0 24px;
      font-size: 28px;
      color: #1a1a1a;
      &.current{
        .id, .name, .score{
          color: $red;
        }
      }
      .id{
        flex-shrink: 0;
        margin-right: 30px;
        min-width: 80px;
      }
      .avatar{
        flex-shrink: 0;
        margin-right: 16px;
        width: 72px;
        height: 72px;
        background-color: #cbcbcb;
        border-radius: 50%;
      }
      .name{
        flex: auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .score{
        flex-shrink: 0;
        margin-right: 80px;
        margin-left: 30px;
        color: $them;
      }
      &:nth-child(2n) {
        background-color: #f4f4f4;
      }
    }
  }
}

